<%- for sticky in @stickies -%>
<div id="sticky_<%=sticky.id%>" class="sticky" style="position:absolute; top:<%=sticky.t_loc%>px; left:<%=sticky.l_loc%>px;z-index:1000;">
	<div id="sticky_drag_<%=sticky.id%>" class="dragbar" onmouseup="update_sticky(sticky_<%=sticky.id%>,<%=sticky.id%>)" ondblclick="$('sticky_form_<%=sticky.id%>').toggle()">
	<%= content_tag(:span,link_to_remote("X", :update => "sticky-container",:url  => {:controller=>:stickies,:action=>'destroy_sticky',:id=>sticky.id}, :method => :delete),:class=>'delete') %>
	</div>
	<form id="sticky_form_<%=sticky.id%>" method="post">
	<%= text_area :sticky, :body, :value => sticky.body -%>
	</form>
<%= draggable_element('sticky_' + sticky.id.to_s, :handle => 'sticky_drag_' + sticky.id.to_s) %>
<%= observe_form('sticky_form_' + sticky.id.to_s, :url => 'stickies/update_sticky_body/' + sticky.id.to_s, :update => 'sticky-container', :on=>'blur')-%>
</div>
<%- end -%>